package chapter_04

/**
  *
  * @author Pop
  * @date 2022/6/12 22:50
  */
object Test04_Practice_Pyramid {

  def main(args: Array[String]): Unit = {
      // 九层妖塔
    for(i <- 1 to 9 ;star = 2*i-1;space=9-i){
      println(" " * space + "*" * star)
    }


  }

}
